#ifndef __NB_H__
#define __NB_H__

#include <stdint.h>

uint8_t nb_tcp_module_init(uint8_t ip1, uint8_t ip2, uint8_t ip3, uint8_t ip4, uint32_t port);
uint8_t nb_tcp_send(uint8_t* pHexdata, uint16_t datalen);
uint8_t nb_tcp_get_module_buff_data(void);
uint8_t nt_tcp_get_module_imei(char* ptr);
uint8_t nb_tcp_soft_reboot(void);
uint8_t nb_tcp_disconnect(void);

typedef enum {
    NB_IDLE = 0,
		NB_CHECK_AT,
    NB_ATTACH_NET,
		NB_TRY_CONNECT,
		NB_CONNECTED,
		NB_DISCONNECTED
} nb_status_e;

extern uint8_t imei[15];
extern nb_status_e nbled;
#endif
